<template>
  <el-drawer
    title="详情"
    :visible.sync="visibleDialog"
    direction="rtl"
    custom-class="demo-drawer"
  >
    <el-form ref="form" :model="formData" disabled label-width="80px">
      {foreach $columns as $key=>$vo }
      {if $vo.is_show}
      <el-form-item label="{$vo.column_comment_actual}">
        <el-input v-model="formData.{$vo.column_name}" />
      </el-form-item>
      {/if}
      {/foreach}
    </el-form>
  </el-drawer>
</template>

<script>

export default {
  props: {
    row: {
      type: Object,
      default() {
        return {}
      }
    },
    visible: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      formData: {},
      authTree: [],
      defaultProps: {
        children: 'children',
        label: 'comment'
      },
      confirmLoading: false
    }
  },
  computed: {
    visibleDialog: {
      get() {
        return this.visible
      },
      set(val) {
        this.$emit('update:visible', val)
      }
    }
  },
  watch: {
    row(val) {
      this.formData = Object.assign({}, val)
    }

  },
  mounted() {

  },
  methods: {

  }
}
</script>

<style scoped>

</style>
